//
//  NXSharedView.h
//  NCube
//
//  Created by kepuna on 2017/10/13.
//  Copyright © 2017年 junjie.liu. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol NXSharedViewDelegate;

FOUNDATION_EXTERN NSString * const NXSharedTypeWechatFriend; // 微信朋友圈
FOUNDATION_EXTERN NSString * const NXSharedTypeTimeLine;// 朋友圈
FOUNDATION_EXTERN NSString * const NXSharedTypeQQ; // QQ
FOUNDATION_EXTERN NSString * const NXSharedTypeWeibo; // 新浪微博
FOUNDATION_EXTERN NSString * const NXSharedTypeCollection; // 收藏
FOUNDATION_EXTERN NSString * const NXSharedTypeCopyright; // 申请版权
FOUNDATION_EXTERN NSString * const NXSharedTypeReport; // 举报

typedef NS_ENUM(NSInteger, NXSharedViewStyle) {
    NXSharedViewStyleDefault,
    NXSharedViewStyleMore,
    NXSharedViewStyleLittle,//只有收藏和举报
    NXSharedViewStyleLittleMore//只有收藏和举报的更多
};

@interface NXSharedView : UIView

@property (nonatomic, weak) id<NXSharedViewDelegate> delegate;

- (instancetype)initWithStyle:(NXSharedViewStyle)style;
- (void)updateCollectionBtnState:(BOOL)isCollect;
- (void)updateCopyrightBtntate:(BOOL)isCopyright;
- (void)dismiss;

@end

@protocol NXSharedViewDelegate <NSObject>

@optional;
- (void)sharedViewUMengBtnClick:(NXSharedView *)sharedView sharedType:(NSString *)sharedType;
- (void)sharedViewCollectionBtnClick:(NXSharedView *)sharedView;
- (void)sharedViewCopyrightBtnClick:(NXSharedView *)sharedView;
- (void)sharedViewReportBtnClick:(NXSharedView *)sharedView;

@end
